package org.bt.forecast.controller;

import org.bt.forecast.dto.DltDto;
import org.bt.forecast.dto.LotteryDto;
import org.bt.forecast.dto.NewestDto;
import org.bt.forecast.dto.SsqDto;
import org.bt.forecast.service.LotteryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LotteryController {

    @Autowired
    private LotteryService lotteryService;

    /**
     * 获取最新一期彩票号码
     */
    @GetMapping("getNewest")
    public NewestDto getNewest() {
        return lotteryService.getNewest();
    }

    @GetMapping("getSsq")
    public SsqDto getSsq() {
        return lotteryService.getSsq();
    }

    @GetMapping("getDlt")
    public DltDto getDlt() {
        return lotteryService.getDlt();
    }

    @GetMapping("getLottery")
    public LotteryDto getLottery() {
        return lotteryService.getLottery();
    }
}
